/**
 * 
 */
package com.ctvit.sms.platform.test;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ctvit.framework.dao.GenericDao;
import com.ctvit.sms.platform.domain.MsgReq;
import com.ctvit.sms.platform.service.SmsService;

/**
 * @author Administrator
 * 
 */
public class JTestInsert extends BaseTestCase {
	private GenericDao dao;

	public void setDao(GenericDao dao) {
		this.dao = dao;
	}
	
	private SmsService service;
	
	public void setService(SmsService service) {
		this.service = service;
	}

	public JTestInsert() {
		this.setDefaultRollback(false);
	}
	
//	public void testSave() {
//		ASObject map = new ASObject();
//		List inserts = new ArrayList();
//		for (int i = 0; i < 30; i++) {
//			inserts.add(map);
//		}
//		map.put("proRecKey", new Long(123));
//		dao.batchInsert(ProProlist.class, inserts);
//	}
	
	public void testService() {
		MsgReq msgReq=new MsgReq();
		try {
			msgReq.setZFormId("000120121212G01");
			msgReq.setZMsgContent("Test 发送内容-10");
			msgReq.setZMsgReceiver("00104511");
			msgReq.setZMsgType("2");
			msgReq.setZRegId("EM11001");
			msgReq.setZSrcSysId("EM11");
			msgReq.setZWfId("99");
			
			service.saveMsgRequest(msgReq);
			service.doSendMsg();
		} catch (Exception e) {
			// TODO: handle exception
		}
	}
}
